/**
 * 获取系统的一些数据
 * 1. statusBarHeight 顶部状态栏高度
 * 2. titleBarHeight 顶部标题栏高度
 */

let SYSTEM_INFO = uni.getWindowInfo();
let statusBarHeight = SYSTEM_INFO.statusBarHeight || 0;

let SYSTEM_MENU_INFO = uni.getMenuButtonBoundingClientRect();
let titleBarHeight = SYSTEM_MENU_INFO.height || 0 + (SYSTEM_MENU_INFO.top || 0 - statusBarHeight);

export { statusBarHeight, titleBarHeight }